<?php
namespace app\wechat\behavior;


use app\util\ReturnCode;
use think\Request;
use think\Config;

class Options{
    public function run(){
        $request = Request::instance();
        $header = config('apiAdmin.CROSS_DOMAIN');
        if($request->method() == 'OPTIONS'){
            $header = Config::get('apiAdmin.CROSS_DOMAIN');
            foreach($header as $key => $var){
                header($key . ':' . $var);
            }
            die;
        }
        return true;
    }
}


?>
